package myJs.myPkg

import myJs.myPkg.jquery.JQuery
import slinky.readwrite.ObjectOrWritten

import scala.scalajs.js
import scala.language.implicitConversions
import scala.scalajs.js.JSConverters._
import scala.scalajs.js.annotation.JSImport
import scala.scalajs.js.annotation.JSImport.Namespace


/**
 * Created by yz on 2019/3/14
 */
@js.native
trait DatetimePickerJQuery extends js.Object {

  def datetimepicker(options: ObjectOrWritten[DatetimePickerOptions]): JQuery = scalajs.js.native

  def datetimepicker(method: String, arg1: String): JQuery = scalajs.js.native

}

case class DatetimePickerOptions(
                              format: js.UndefOr[String] = js.undefined,
                              language: js.UndefOr[String] = js.undefined,
                              autoclose: js.UndefOr[Boolean] = js.undefined,
                              minuteStep: js.UndefOr[Int] = js.undefined,
                            )

trait DatetimePickerJQueryImplicits {

  implicit def implicitDatetimePickerJQuery(jq: JQuery) = {
    jq.asInstanceOf[DatetimePickerJQuery]
  }
}
